Ext.BLANK_IMAGE_URL = '../extjs/resources/images/default/s.gif';

Ext.onReady(function() {

  var acc = new Ext.ux.Accordion('acc-ct', {
    fitContainer: true 
		, fitToFrame: true 
		, useShadow: true
		, adjustments: [ 0, -26 ]
  
  })
	
 	var allDiv = $("div");
 			
	for (var i=0;i<$(allDiv).size();i++){
		var element = $(allDiv).get(i);

		  if(element.id.toString().substring(0,5)=='panel'){
		  var imagePath = "/elbs/app/images/icons/"+element.id.toString()+".png";
			  var panel = acc.add(new Ext.ux.InfoPanel(element.id.toString(), {trigger:'title', collapsed:true,icon:imagePath, showPin: true
		, collapseOnUnpin: false}));  	               
		  }
	}
			
	

 
  
});

